<?php ob_start(); $internal_lng = $this->listing->getInternalLanguage(); ?>
    <?php if (!empty($this->listing->street)) {echo "<dl class='desc'>".$this->dtDd($this->t('Address', $internal_lng), $this->listing->street)."</dl>";}?>
    <?php if (!empty($this->listing->size)) {echo "<dl>".$this->dtDd($this->t('Size', $internal_lng), $this->t('__1__ sqft', $internal_lng, number_format($this->listing->size)))."</dl>";}?>
    <?php if (!empty($this->listing->building_age)) { echo "<dl>".$this->dtDd($this->t('Building Age', $internal_lng), $this->t('__1__ years', $internal_lng, $this->listing->building_age))."</dl>";}?>
    <?php if (!empty($this->listing->property_type)) { echo "<dl>".$this->dtDd($this->t('Property Type', $internal_lng), $this->t('__1__ years', $internal_lng, $this->listing->property_type))."</dl>";}?>
    <?php if (!empty($this->listing->floor_zone)) { echo "<dl>".$this->dtDd($this->t('Ground Zone', $internal_lng), $this->t($this->listing->floor_zone))."</dl>";}?>
    <?php
    if (!empty($this->listing->property_type)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getPropertyType();
        $to_add     = '';
        $field = $this->t($views[$this->listing->property_type], $internal_lng);
        echo "<dl>".$this->dtDd($this->t('Property Type', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->floor_zone)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getFloorZone();
        $to_add     = '';
        $field = $this->t($views[$this->listing->floor_zone], $internal_lng);
        echo "<dl>".$this->dtDd($this->t('Floor Zone', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->fitoutconditions)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getFitoutConditions();
        $to_add     = '';
        foreach ($this->listing->fitoutconditions as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Fit-Out Conditions', $internal_lng), $field)."</dl>";
    }
    ?>

    <?php
    if (!empty($this->listing->views)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getViews();
        $to_add     = '';
        foreach ($this->listing->views as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('View', $internal_lng), $field)."</dl>";
    }
    ?>

    <?php
    if (!empty($this->listing->toilet)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getToilet();
        $to_add     = '';
        foreach ($this->listing->toilet as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Toilet', $internal_lng), $field)."</dl>";
    }
    ?>

    <?php
    if (!empty($this->listing->availability)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getAvailability();
        $to_add     = '';
        foreach ($this->listing->availability as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Availability', $internal_lng), $field)."</dl>";
    }
    ?>

    <?php
    if (!empty($this->listing->airconsystem)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getAirConditioningSystem();
        $to_add     = '';
        foreach ($this->listing->airconsystem as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Air Conditioning System', $internal_lng), $field)."</dl>";
    }
    ?>

    <?php if (!empty($this->listing->management_fee)) { echo "<dl>".$this->dtDd($this->t('Management Fee', $internal_lng), "HKD ".$this->listing->management_fee)."</dl>";}?>
    <?php if (!empty($this->listing->government_fee)) { echo "<dl>".$this->dtDd($this->t('government Rate', $internal_lng), "HKD ".$this->listing->government_fee)."</dl>";}?>


    <?php
    if (!empty($this->listing->buildingfacilities)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getBuildingFacilities();
        $to_add     = '';
        foreach ($this->listing->buildingfacilities as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Building Facilities', $internal_lng), $field)."</dl>";
    }
    ?>

    <?php
    if (!empty($this->listing->carparkingfacilities)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getCarparkingFacilities();
        $to_add     = '';
        foreach ($this->listing->carparkingfacilities as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Carparking Facilities', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->ownership)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getOwnerShip();
        $field = $this->t($views[$this->listing->ownership], $internal_lng);
        echo "<dl>".$this->dtDd($this->t('Ownership', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->numberstores)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getNumberofStores();
        $field = $views[$this->listing->numberstores];
        echo "<dl>".$this->dtDd($this->t('Number of Stories', $internal_lng), $field)."</dl>";
    }
    ?>


    <?php if (!empty($this->listing->typicalfloorarea)) { echo "<dl>".$this->dtDd($this->t('Typical Floor Area', $internal_lng), $this->t('__1__ sqft', $internal_lng, number_format($this->listing->typicalfloorarea)))."</dl>";}?>

    <?php
    if (!empty($this->listing->flooringsystem)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Commercial::getFlooringSystem();
        $field = $this->t($views[$this->listing->flooringsystem], $internal_lng);
        echo "<dl>".$this->dtDd($this->t('Flooring System', $internal_lng), $field)."</dl>";
    }
    ?>

    <?php if (!empty($this->listing->ceilingheight)) { echo "<dl>".$this->dtDd($this->t('Ceiling Height', $internal_lng), $this->listing->ceilingheight)."</dl>";}?>
    <?php if (!empty($this->listing->passengelifts)) { echo "<dl>".$this->dtDd($this->t('No of Passenge Lifts', $internal_lng), $this->listing->passengelifts)."</dl>";}?>
    <?php if (!empty($this->listing->servicelifts)) { echo "<dl>".$this->dtDd($this->t('No of Service Lifts', $internal_lng), $this->listing->servicelifts)."</dl>";}?>
    <?php if (!empty($this->listing->airconhoursweek)) { echo "<dl>".$this->dtDd($this->t('Air Conditioning Hours (Mon-Fri)', $internal_lng), $this->listing->airconhoursweek)."</dl>";}?>
    <?php if (!empty($this->listing->airconhourssaturday)) { echo "<dl>".$this->dtDd($this->t('Air Conditioning Hours (Saturday)', $internal_lng), $this->listing->airconhourssaturday)."</dl>";}?>
    
<?php $content = trim(ob_get_clean())?>
<?php if (!empty($content)):?>
    <div id="detail_content_text_category" class="detail category">
        <h2><?php echo $this->t('Property Information', $internal_lng)?></h2>
        
            <?php echo $content ?>
        
    </div>
<?php endif;?>